package cn.tedu.charging.order.mqtt;


import cn.tedu.charging.order.dao.mapper.OrderFailMapper;
import cn.tedu.charging.order.dao.mapper.OrderSuccessMapper;
import cn.tedu.charging.order.dao.repository.ChargingProcessESRepository;
import cn.tedu.charging.order.feign.CostClient;
import cn.tedu.charging.order.feign.DeviceClient;
import cn.tedu.charging.order.websocket.WebSocketServer;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Data
public class MqttContext {

    // 在Bean 容器外的对象MqttConsumer 不能直接调用Bean 容器内的对象,设置一个统一的包装类,来进行管理
    @Autowired
    private OrderSuccessMapper orderSuccessMapper;
    @Autowired
    private OrderFailMapper orderFileMapper;
    @Autowired
    private DeviceClient deviceClient;
    @Autowired
    private CostClient costClient;
    @Autowired
    private ChargingProcessESRepository chargingProcessESRepository;
    @Autowired
    private WebSocketServer webSocketServer;

}
